<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>LAPORAN CATATAN PERSEDIAAN BBM</title>
<link rel='stylesheet' type='text/css' href='../assets/modules/main/css/printstyle_nocolor.css'/>
<style type="text/css">
	@page {
		margin-top: 0.3em;
        margin-left: 0.6em;
	}
</style>
</head>
<body>
<table width="100%" border="0">
  <tr>
    <td colspan="4"><table width="100%" border="0">
      <tr>
        <td width="12%"><img src="./assets/images/logo.jpg" alt="pertamax gan" width="79" height="73" /></td>
        <td width="3%">&nbsp;</td>
        <td width="73%" valign="top"><?php echo @$header->spbu_code."<br/>".@$header->spbu_name."<br/>".@$header->spbu_address."<br/>".@$header->spbu_city_name; ?></td>
        <td width="12%" align="right" valign="top"><img src="./assets/images/pasti_pas.jpg" alt="pasti pas gan" width="87" height="69" /></td>
      </tr>
    </table><hr/></td>
  </tr>
  <tr>
    <td height="38" colspan="4"><strong>LAPORAN CATATAN PERSEDIAAN BBM</strong></td>
  </tr>
  <tr >
    <td width="9%">Produk : </td>
    <td width="25%"><?php echo @$title->produk; ?></td>
    <td width="13%">Tangki Pendam : </td>
    <td width="53%"><?php echo @$title->gudang; ?></td>
  </tr>
</table>
<table width="100%" cellpadding="2" cellspacing="0">
  <thead>
	  <tr>
	    <td colspan="2" rowspan="2" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&nbsp;</td>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Awal</td>
	    <td colspan="6" align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Penerimaan</td>
	    <td colspan="4" align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Pengeluaran</td>
	  </tr>
	  <tr>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">a</td>
	    <td colspan="3" align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&nbsp;</td>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">b</td>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">c</td>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">d=b-c</td>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">e</td>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">f=a+c-e</td>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">g</td>
	    <td align="center" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">h=g-f</td>
	  </tr>
	  <tr style="font-weight: bold;">
	    <td width="5%" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Tanggal</td>
	    <td width="2%" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Shift</td>
	    <td width="5%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Stok Awal (L) </td>
	    <td width="6%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">No. Pol Mobil Tangki </td>
	    <td width="5%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">No. PNBP (DO) </td>
	    <td width="4%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Volume Sebelum Penerimaan (L) </td>
	    <td width="5%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Volume Penerimaan PNBP (L) </td>
	    <td width="5%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Volume Penerimaan Aktual (L) </td>
	    <td width="7%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Selisih Volume - R/L (L) </td>
	    <td width="4%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Pengeluaran Dispenser (L) </td>
	    <td width="4%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black"><p>Stok Akhir Teoritis (L) </p>    </td>
	    <td width="7%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Stok Akhir Aktual (L) </td>
	    <td width="5%" align="center" valign="top" style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">Selisih Total Pengeluaran (L) </td>
	  </tr>
	  <tr>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&nbsp;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&nbsp;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&nbsp;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">g/cm&sup3;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&deg;C</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">g/cm&sup3;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">cm</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&nbsp;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&nbsp;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&nbsp;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">g/cm&sup3;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">g/cm&sup3;</td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black">&deg;C</td>
	  </tr>
  </thead>
  <tbody>
  <?php
  if(count($data)>0 && $data<>0) {
  foreach($data as $data_list){
  ?>
	  <tr>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black"><?php echo $data_list->shift_date; ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black"><?php echo $data_list->shift_id; ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->stok_awal, 0, ',', '.'); ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black"><?php echo $data_list->bbmrec_nopol; ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black"><?php echo $data_list->bbmrec_do; ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->bbmrec_volume_a, 2, ',', '.'); ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->bbmrec_volume, 2, ',', '.'); ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->bbmrec_volume_actual, 2, ',', '.'); ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->bbmrec_volume_diff, 2, ',', '.'); ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->pengeluaran_dispenser, 2, ',', '.'); ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->stok_akhir_teoritis, 2, ',', '.'); ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->stok_akhir_aktual, 2, ',', '.'); ?></td>
	    <td style="border-top:thin solid black; border-right:thin solid black; border-bottom:thin solid black; border-left:thin solid black" align="right"><?php echo number_format($data_list->stok_akhir_selisih, 2, ',', '.'); ?></td>
	  </tr>
  <?php } 
  }
  ?>
	  <tr>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	    <td>&nbsp;</td>
	  </tr>
  </tbody>
</table>
</body>
</html>
